/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ucom.Entity;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author Simon Hong
 */
@Entity
@Table(name = "serviritylevel")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "Serviritylevel.findAll", query = "SELECT s FROM Serviritylevel s"),
    @NamedQuery(name = "Serviritylevel.findBySeverityLevelID", query = "SELECT s FROM Serviritylevel s WHERE s.severityLevelID = :severityLevelID"),
    @NamedQuery(name = "Serviritylevel.findBySeverityDetail", query = "SELECT s FROM Serviritylevel s WHERE s.severityDetail = :severityDetail")})
public class Serviritylevel implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @NotNull
    @Column(name = "SeverityLevelID")
    private Integer severityLevelID;
    @Size(max = 45)
    @Column(name = "SeverityDetail")
    private String severityDetail;

    public Serviritylevel() {
    }

    public Serviritylevel(Integer severityLevelID) {
        this.severityLevelID = severityLevelID;
    }

    public Integer getSeverityLevelID() {
        return severityLevelID;
    }

    public void setSeverityLevelID(Integer severityLevelID) {
        this.severityLevelID = severityLevelID;
    }

    public String getSeverityDetail() {
        return severityDetail;
    }

    public void setSeverityDetail(String severityDetail) {
        this.severityDetail = severityDetail;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (severityLevelID != null ? severityLevelID.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Serviritylevel)) {
            return false;
        }
        Serviritylevel other = (Serviritylevel) object;
        if ((this.severityLevelID == null && other.severityLevelID != null) || (this.severityLevelID != null && !this.severityLevelID.equals(other.severityLevelID))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "ucom.Entity.Serviritylevel[ severityLevelID=" + severityLevelID + " ]";
    }
    
}
